﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace WMP
{
    class Parseur
    {
        public string  parser(char separator, string file)
        {
            int pos = file.LastIndexOf(separator);
            file = file.Remove(0, pos + 1);
            file = file.Remove((file.Length - 4), 4);
            return (file);
        }

        public string parser(string file)
        {
            return (parser('\\', file));
        }
    }
}
